var person = {
    name: "alen",
    age: 15,
    say: function () {
        console.log("my name is", person.name);
    }
}

var man = new Object();
man.name = "alice";
man.age = 1
man.say = function () {
}

console.log(person.name);
person.say();

for (var attr in person) {
    console.log(attr, person[attr]);
}

function People(name, age) {
    this.name = name;
    this.age = age;
    this.chi = function () {
        console.log(this.name, "吃东西")
    }
}

p1 = new People("alex", 15)
p2 = new People("WuSir", 15)
p1.chi();
p2.chi();
